getexecutioncount

SoftwareShield ClientProtector COM Component > ClientProtector (SSCProtector) Reference > GetExecutionCount

## GetExecutionCount

The GetExecutionCount function retrieves the execution count (used executions) of an expiring license which has an execution limit (if any).

###### Syntax

HRESULT GetExecutionCount ( long * ExecutionCount, VARIANT_BOOL * IsExpireType );

###### Parameters

ExecutionCount

[OUT] This is (a pointer to) a numeric value which returns holding the total number of used executions. (1 or greater).

IsExpireType

[OUT] This is (a pointer to) a boolean value which returns holding a value indicating if the license is currently under the influence of an execution limit (which has been reached or not). Note that once you successfully use a Release All Expiration type of Activation Code on the license, that the license is no longer considered an expire type and this parameter returns false. Always ignore the other parameter if this parameter returns containing false.

###### Remarks

Note: This function is illustrated in the SoftwareShield Flowcharts - (see flow chart #3).

The GetExecutionCount function retrieves the execution count (used executions) of an expiring license which has an execution limit (if any). If the license is an expire type and under the influence of an execution limit (which has been reached or not), the ExecutionCount parameter will return holding the total number of used executions including the currently executing session.

If the license has no execution limit, the IsExpireType parameter will return holding false. If the license is under the influence of an execution limit, it will return holding true.

If you instead need to know the number of remaining (unused) executions use: GetExecutionsRemaining. If you instead need to know how many total executions are permitted, use: GetExecutionLimit.

###### Return Value

As with all COM function calls they return an HRESULT. HRESULT is a data type that is a 32-bit error or warning code. Check your compilers documentation for information on interpreting the HRESULT value.

###### Function Information

Exposed By Interface: | "ISSCProtector"
Exposed In COM Server Binaries: | "SSCProt.dll" and "SSCProtD.dll"